package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author eason
 * @ClassName: ServiceDomesticNursing
 * @Description: 服务-家政护理定义表
 * @date 2016-11-03 18:26:50
 */
@Entity
//@Table(name = "tb_xa_domesticnursing")
@Table(name = "tb_xa_service_domesticnursing")
@ApiModel(value = "服务-家政护理定义表")
public class ServiceDomesticNursing extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "护理人员姓名,护理人员姓名")
    private String nurse_Name;
    @ApiModelProperty(value = "护理岗位name,护理岗位ID(eg:老年护理师)")
    private String nurse_RoleID;
    @ApiModelProperty(value = "人员性别（1:男 2：女）,人员性别1：男，2女")
    private String nurse_Sex;
    @ApiModelProperty(value = "护工年龄（出生年月yyyy-MM）,护工年龄（yyyy-MM）")
    private String nurse_Age;
    @ApiModelProperty(value = "工龄（开始年份yyyy）,工龄（开始年份yyyy）")
    private String nurse_LengthServi;
    @ApiModelProperty(value = "机关省份（直辖市、籍贯）,机关省份（直辖市、籍贯）")
    private String nurse_Native;
    @ApiModelProperty(value = "工资,工资")
    private Double nurse_Salary;
    @ApiModelProperty(value = "工资单位(年、月、天、次),工资单位")
    private String nurse_Salary_unit;
    @ApiModelProperty(value = "头像照片（单张）,头像照片（单张）")
    private String nurse_PicUrl;
    @ApiModelProperty(value = "手机号码,手机号码")
    private String nurse_Cellphone;
    @ApiModelProperty(value = "学历,学历（eg:河南医科大学）")
    private String nurse_Education;
    @ApiModelProperty(value = "护工介绍（富文本）,护工介绍")
    private String nurse_Inforation;
    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;

    public static final long SORT_DEFAULT = 9999999L;

    public ServiceDomesticNursing() {
		// TODO Auto-generated constructor stub
	}

    public void setNurse_Name(String nurse_Name) {
        this.nurse_Name = nurse_Name;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_Name() {
        return nurse_Name;
    }

    public void setNurse_RoleID(String nurse_RoleID) {
        this.nurse_RoleID = nurse_RoleID;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_RoleID() {
        return nurse_RoleID;
    }

    public void setNurse_Sex(String nurse_Sex) {
        this.nurse_Sex = nurse_Sex;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_Sex() {
        return nurse_Sex;
    }

    public void setNurse_Age(String nurse_Age) {
        this.nurse_Age = nurse_Age;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_Age() {
        return nurse_Age;
    }

    public void setNurse_LengthServi(String nurse_LengthServi) {
        this.nurse_LengthServi = nurse_LengthServi;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_LengthServi() {
        return nurse_LengthServi;
    }

    public void setNurse_Native(String nurse_Native) {
        this.nurse_Native = nurse_Native;
    }

    @Column(nullable = true, length = 255)
    public String getNurse_Native() {
        return nurse_Native;
    }

    public void setNurse_Salary(Double nurse_Salary) {
        this.nurse_Salary = nurse_Salary;
    }

    @Column(nullable = true, length = 50)
    public Double getNurse_Salary() {
        return nurse_Salary;
    }

    public void setNurse_PicUrl(String nurse_PicUrl) {
        this.nurse_PicUrl = nurse_PicUrl;
    }

    @Column(nullable = true, length = 200)
    public String getNurse_PicUrl() {
        return nurse_PicUrl;
    }

    public void setNurse_Cellphone(String nurse_Cellphone) {
        this.nurse_Cellphone = nurse_Cellphone;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_Cellphone() {
        return nurse_Cellphone;
    }

    public void setNurse_Education(String nurse_Education) {
        this.nurse_Education = nurse_Education;
    }

    @Column(nullable = true, length = 100)
    public String getNurse_Education() {
        return nurse_Education;
    }

    public void setNurse_Inforation(String nurse_Inforation) {
        this.nurse_Inforation = nurse_Inforation;
    }

    @Column(nullable = true, length = 50)
    public String getNurse_Salary_unit() {
        return nurse_Salary_unit;
    }

    public void setNurse_Salary_unit(String nurse_Salary_unit) {
        this.nurse_Salary_unit = nurse_Salary_unit;
    }

    @Column(nullable = true, length = 10000, columnDefinition = "MEDIUMTEXT")
    public String getNurse_Inforation() {
        return nurse_Inforation;
    }

    @Column(nullable = true, length = 50)
    public Long getClickCont() {
        return clickCont;
    }

    public void setClickCont(Long clickCont) {
        this.clickCont = clickCont;
    }

    @Column(nullable = true, length = 50)
    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    public void setInsertBefore() {
        super.setInsertBefore();
        if (sort == null) {
            sort = SORT_DEFAULT;//排序默认值
        }
    }
}
